package com.zhuss.core.append;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import com.zhuss.bean.bo.core.append.DetailUserAppendBo;
import com.zhuss.bean.bo.core.append.SearchUserAppendBo;
import com.zhuss.common.BasePageParam;
import com.zhuss.common.ReadService;
import com.zhuss.core.processor.UserAppendRead;
import com.zhuss.exception.WpsException;

/**
 * @description: 用户关注、点赞查询Service
 * @author: zhushanshuo
 * @create: Fri Jul 03 20:49:22 CST 2020
 **/
@Component("userAppendReadService")
public class UserAppendReadService implements ReadService<Object, Object> {
	
	@Autowired
	@Qualifier("userAppendRead")
	private UserAppendRead userAppendRead;
	
	/**
	 * 详情
	 */
	@Override
	public Object detail(Object param) throws WpsException {
		DetailUserAppendBo bo = (DetailUserAppendBo) param;
		Long userAppendId = bo.getUserAppendId();
		Object vo = userAppendRead.detail(userAppendId);
		return vo;
	}
	
	/**
	 * 列表
	 */
	@Override
	public Object list(Object param) {
		SearchUserAppendBo bo = (SearchUserAppendBo) param;
		Object result = userAppendRead.list(bo);
		return result;
	}
	
	/**
	 * 粉丝列表
	 */
	public Object listAppend(BasePageParam param) throws WpsException {
		Object result = userAppendRead.listAppend(param);
		return result;
	}
	
}

